<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=8" > 
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
        <script src="{{=URL(c='default', f='js')}}"></script>
        <script src="{{=URL(c='static', f='js/jqtipsy.js')}}"></script>
        <script type="text/javascript" src="{{=URL(c='static', f='js/mootools-yui-compressed.js')}}"></script>
        <script type="text/javascript" src="{{=URL(c='static', f='js/LightFace.js')}}"></script>
        <script type="text/javascript" src="{{=URL(c='static', f='js/jquery.facebook.multifriend.select.js')}}"></script>
        <link rel="stylesheet" href="{{=URL(c='static', f='css/LightFace.css')}}" type="text/css"/>
        <link rel="stylesheet" href="{{=URL(c='static', f='css/styles.css')}}" type="text/css" />
        <link rel="stylesheet" href="{{=URL(c='static', f='css/jquery.facebook.multifriend.select.css')}}" type="text/css" />
        <script type="text/javascript">
            var invhead = '{{=invhead}}';
            var invmsg  = '{{=invmsg}}';
            var invreq  = {{=invreq}};
            var app_id = '{{=app_id}}';
            var page_url = "{{=page_url}}";
        </script>
    </head>
    <body>
        <div id="content">
        {{if liked or (not use_lander):}}
        {{=header}}
        <div id="slapholder">
            {{for row in rows:}}
            <div class="slaps"><div id="{{=row.id}}^{{=URL(c='images', f='download', args=row.image)}}^{{=row.img_name}}^{{=row.redirect}}^{{=row.invite_message}}" class="slapimg" title="{{=row.img_name}}" style="background-image: url('{{=URL(c='images', f='download', args=row.image)}}'); background-position: center bottom;background-repeat:no-repeat;"><a href="javascript:void(0);"><img src="{{=URL(c='static', f='images/100x100clear.png')}}" style="border: 0;"></a></div></div>
            {{pass}}
        <div class="clear"></div>
        </div>
        <div id="fb-root"></div>
        <script type="text/javascript" src="https://connect.facebook.net/en_US/all.js" async="true"></script>
        {{=footer}}
        {{else:}}
        {{=lander}}
        {{pass}}
        </div>
    </body>
</html>
